package com.bishe.psy.service;


import com.bishe.psy.model.Article;
import com.bishe.psy.model.LikeArticle;
import com.bishe.psy.model.StuUser;
import org.apache.ibatis.annotations.Param;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created with Intellij IDEA.
 * Description:
 * User: L
 * Date: 2024-03-24
 * Time: 17:24
 */

//新增用户
public interface ILikeArticleService {

    //根据点赞的文章id查询该片文章的点赞记录
    LikeArticle selectLikeById(@Param("articleId")Long articleId, @Param("userId")Long userId,
                               @Param("currentIdentity")Long currentIdentity);


    //修改点赞状态
    @Transactional
    void updateIsLikeState(Long id);

    @Transactional
    void addOneLikeLogs (LikeArticle likeArticle);
}
